package Sales;

public class Sale {

	private String ID,prodName,unit;
	private double quantity,price;
	private Product prod;
	private Invoice receipt;
	
	
	public Sale(String Saleid,String pName,String U,double Q,double amt,Invoice I){
		ID=Saleid;
		prodName=pName;
		unit=U;
		quantity=Q;
		price=amt;
		receipt=I;
	}
	
	
	public Sale(String Saleid,String pName,String U,double Q,double amt){
		ID=Saleid;
		prodName=pName;
		unit=U;
		quantity=Q;
		price=amt;
		//setProd(P);
	}
	public String getID(){
		return ID;
	}
	public double getQuantity(){
		return quantity;
	}
	public double getPrice(){
		return price;
	}
	public String getUnit(){
		return unit;
	}
	public String getProduct(){
		return prodName;
	}
	public Invoice getInvoice(){
		return receipt;
	}
	public Product getProd() {
		return prod;
	}
	
	public void setQuantity(double quan){
		quantity=quan;
	}
	public void setUnit(String U){
		unit=U;
	}
	public void setProduct(String P){
		prodName=P;
	}
	public void setPrice(double cost){
		price=cost;
	}
	public void setInvoice(Invoice R){
		receipt=R;
	}
	public void setProd(Product prod) {
		this.prod = prod;
	}
	
}